<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var obj = {};
        // 添加属性
        obj.name = "亚索"
        obj.num = 3
        obj.sex = "man"
        obj.family = "orphan"
        // 添加方法
        console.log("For In:");
        for(var a in obj)
        console.log(a)
    </script>
    
</body>
</html>